import { PanelItemState } from '@ibiz-template/runtime';
import { ISysImage } from '@ibiz/model-core';

export interface TabMsg {
  key: string;
  caption?: string;
  dataInfo?: string;
  sysImage?: ISysImage;
  viewName?: string;
}

/**
 * 导航标签页占位状态
 * @export
 * @class NavTabsState
 * @extends {PanelItemState}
 */
export class NavTabsState extends PanelItemState {
  /**
   * 当前路由key
   * @return {*}
   */
  currentKey: string = '';

  /**
   * 分页标签项
   * @return {*}
   */
  tabItems: TabMsg[] = [];

  /**
   * 当前激活tab
   * @return {*}
   */
  activeTab: string = '';

  /**
   * 默认激活视图key
   * @return {*}
   */
  defaultActiveKey: string = '';
}
